package com.ruoyi.system.service.feign;

import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.system.api.domain.SysUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author Ele qvbanfm@qq.com
 * @title: UserAddFeign
 * @projectName ruoyi
 * @description: 远程调用
 * @date 2021/2/422:30
 */
@FeignClient(value = "ruoyi-system")
public interface UserFeign {
    @PostMapping("/user")
    AjaxResult add(@Validated @RequestBody SysUser user);
    //TODO userId 修改用户密码
    @PutMapping("/user/resetPwd")
    AjaxResult edit(@Validated @RequestBody SysUser user);
}
